package com.server.order.service.impl;

import com.server.model.all.order.bo.PlaceOrderBo;
import com.server.order.mapper.TaskOrderMapper;
import com.server.order.service.TaskOrderService;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class TaskOrderServiceImpl implements TaskOrderService {

    @Resource
    private TaskOrderMapper taskOrderMapper;

    /**
     * 下单
     * @author LXC
     * @date 2022/5/12 14:17
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    @GlobalTransactional(rollbackFor = Exception.class)
    public int placeOrder(PlaceOrderBo placeOrderBo) {



        return 1;
    }




}
